 //
//  CYPerson.h
//  CreditAddressBook
//
//  Created by Lee on 15/4/23.
//  Copyright (c) 2015年 Lee. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "RHPerson.h"
#import "CYSimpleRecord.h"

typedef enum {
    CYIconTypeYS = 1,//疑似失信人
    CYIconTypeSX,     //失信人
    CYIconTypeDefault
}CYIconType;

@interface CYPerson : NSObject

@property (nonatomic, strong) RHPerson *person;
@property (nonatomic, strong) CYSimpleRecord *simpleRecord;
@property (nonatomic, copy, readonly) NSString *pinyin;
@property (nonatomic, copy, readonly) NSString *pinyinHeader;//汉字字符串中每个汉字的首字母
@property (nonatomic, copy, readonly) NSString *pinyinHeaderFirst;//汉字字符串的首字母
@property (nonatomic, copy, readonly) NSString *pinyinIndex;//拼音检索
@property (nonatomic, copy, readonly) NSString *pinyinHeaderIndex;//拼音首字母检索

@property (nonatomic, copy) NSString *name;
@property (nonatomic, strong) NSArray *phones;
@property (nonatomic, copy) NSString *phone;
@property (nonatomic, assign) BOOL add;//添加号码
/**匹配到的疑似失信人数*/
@property (nonatomic, assign) NSInteger count;

/**1:push;2:modal;*/
@property (nonatomic, assign) NSInteger pushTag;

/**0:默认通讯录;1:失信人;2:疑似失信人;3:统计4:通话记录;5.收藏;*/
@property (nonatomic, assign) NSInteger segmentTag;

/**通讯录cell的iconBtn显示与否*/
@property (nonatomic, assign) BOOL show;

/**显示失信图标还是疑似图标*/
@property (nonatomic, assign) NSInteger iconType;

- (instancetype)initWithRHPerson:(RHPerson *)rhPerson;
@end
